import { request } from "@/utils/request";

/**
 * 根据文章id获取评论
 * @param id
 * @returns
 */
export const mangetbyessayapi = (id: number) => {
  return request.get(`/comment/mangetbyessay/${id}`);
};

/**
 * 删除评论
 * @param id
 * @returns
 */
export const deletecomapi = (id: number) => {
  return request.delete(`/comment/deletecom/${id}`);
};
